﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class GameStart : MonoBehaviour
{
    string names;
    public RawImage raw;
    private void Begin()
    {
         SceneManager.LoadScene(names);       
    }
    public void OnStartGame(string scenename)
    {
        names = scenename;
        raw.gameObject.SetActive(true);
        Invoke("Begin",23f);
    }
}
